package com.open.launcher.helper;



import com.open.launcher.bean.LatelyBean;
import com.open.launcher.callback.RequestCallback;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Shinelon on 2017/9/15.
 */

public class LatelyHelper {
    private RequestCallback callback;
    private List<LatelyBean> mainChanels;

    public LatelyHelper() {
        mainChanels = new ArrayList<>();
    }

    public void setCallback(RequestCallback callback) {
        this.callback = callback;
    }

    public void loadData(String url) {
        for (int i = 0; i < 20; i++) {
//            LatelyBean latelyBean = new LatelyBean();
//            latelyBean.setLatelyTitle("第" + i + "节目");
//            latelyBean.setLatelyImg(R.mipmap.ec_entry1);
//            if (i % 3 == 0) {
//                latelyBean.setLateTimer(SystemTimeDate.StringData());
//            } else {
//                latelyBean.setLateTimer("");
//            }
//            mainChanels.add(latelyBean);
        }

//        if (callback != null) {
//            callback.onLoadComplete("", 0, mainChanels.size(), mainChanels);
//        }
    }
}
